﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Scala.Logic;

namespace Scala.Data.Impl.Mappings
{
    public class EventMap : ClassMap<Event>
    {
        public EventMap()
        {
            Table("event");
            Id(x => x.Id);
            Map(x => x.Title).Length(200);
            HasOne(x => x.EventType);
            Map(x => x.Place).Nullable();
            Map(x => x.FromDate);
            Map(x=>x.TillDate);
        }
    }
}
